package com.example.controller;

import com.example.service.HelloFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tgj
 * @Date 21:38 2021/5/6
 */
@RestController
public class IndexController {
    @Resource
    private HelloFeignService helloFeignService;

    @RequestMapping("/hello")
    public String hello(String name){
        return helloFeignService.hello(name);
    }

}
